package cn.cqie.attendance.manager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 697
 * @date 2021/6/18 16:43
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Student对象", description="")
public class AdminStudent extends Model {

    private static final long serialVersionUID = -6076396448222680984L;

    @TableId(value = "学生id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "学号")
    private String stuNumber;

    @ApiModelProperty(value = "学生姓名")
    private String stuName;

    @ApiModelProperty(value = "学生班级")
    private int stuClass;

    @ApiModelProperty(value = "学生专业")
    private int stuMajor;

    @ApiModelProperty(value = "学生id")
    private int stuId;

    @ApiModelProperty(value = "学生年级")
    private int stuGrade;

    @ApiModelProperty(value = "身份证号码")
    private String identity;

    @ApiModelProperty(value = "性别 0 女 1 男")
    private String gender;

    @ApiModelProperty(value = "邮件")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "小组")
    private int groupId;

    @ApiModelProperty(value = "方向 0前端 1后端 2测试")
    private int direction;

    @ApiModelProperty(value = "登录次数")
    private int loginTimes;

    @ApiModelProperty(value = "学生头像")
    private String face;

    @ApiModelProperty(value = "组长")
    private int groupLeader;


    /*其他表信息*/
    @ApiModelProperty(value = "班级名")
    private String ClassName;

    @ApiModelProperty(value = "班主任")
    private String teacherName;

    @ApiModelProperty(value = "专业名")
    private String majorName;

    @ApiModelProperty(value = "年级名")
    private String gradeName;

    @ApiModelProperty(value = "院系名")
    private String collegeName;

    @ApiModelProperty(value = "小组名")
    private String groupName;

    @ApiModelProperty(value = "学生所做项目里的角色(并非学生所选择的方向区别于direction)")
    private String courseRole;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "提交时间")
    private Date submitTime;

}
